﻿@{
    ViewBag.Title = "新闻中心";
    Layout = "~/Views/Shared/_Layout.cshtml";
    
}

<style type="text/css">
    .banner {
        background: url(../../../Content/change/images/gsjj_banner.jpg) no-repeat center center;
        height: 230px;
    } 
    #LeftMenu ul li {
    } 
        #LeftMenu ul li a {
            display: block;
            text-decoration: none;
            background-color: #ececec;
            width: 152px;
            height: 38px;
            line-height: 38px;
            border-radius: 5px;
            font-size: 16px;
            margin: 10px;
            text-align: center;
            color: #202020;
        }

            #LeftMenu ul li a:hover {
                display: block;
                text-decoration: none;
                background-color: #ff5d5e;
                width: 152px;
                height: 38px;
                line-height: 38px;
                border-radius: 5px;
                font-size: 16px;
                margin: 10px;
                color: #fff;
            }

            #LeftMenu ul li a:active {
                display: block;
                text-decoration: none;
                background-color: #ff5d5e;
                width: 152px;
                height: 38px;
                line-height: 38px;
                border-radius: 5px;
                font-size: 16px;
                margin: 10px;
                color: #fff;
            }
</style>

<div class="banner">
    <ul>
        <li>
            <div class="inner">
            </div>
        </li>
    </ul>
</div>
<div style="background: url(../../../Content/change/images/gsjj_bg.jpg) no-repeat center center;min-height: 700px;">
    <div style="width: 1200px; margin: 0 auto; min-height: 700px;padding-bottom: 20px;">
        <div style="padding: 10px;color: #6b6b6b;font-size: 16px;">
            您现在的位置：
            <a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/">首页</a>>
            <a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Article/NewsList?mainmenuid=@ViewBag.MainMenu.ID">@ViewBag.MainMenu.Name</a>>
            <a style="color: red;">@ViewBag.CurrentMenu.Name</a>
        </div>
        <div id="LeftMenu" style="width: 200px;">
            <ul>
                   @foreach (var LeftMenu in ViewBag.LeftMenu)
                         {
                             <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Article/NewsList?menuid=@LeftMenu.ID">@LeftMenu.Name</a></li>
                         }
@*                <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Article/NewsList?menuid=217">公司文化</a></li>
                <li><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Article/NewsList?menuid=205">联系方式</a></li>*@
            </ul>
        </div>
        <div style="width:1000px;margin-left:200px;margin-top:@(-48*ViewBag.LeftMenu.Count)px;font-size: 16px;">
            <table class="table table-hover" style="margin: 10px;color: #6b6b6b;width: 100%;">
                <tbody>
                    @if (ViewBag.ArticleList.Count > 1)
                    {
                        foreach (var item in ViewBag.ArticleList)
                        {
                            <tr>
                                <td style="text-align: left">
                                    <div style="border-left:1px solid  #6b6b6b;padding: 20px;"><h1><a href="@System.Configuration.ConfigurationSettings.AppSettings["qjurl"]/Article/NewsList?id=@item.ID"><span class="glyphicon glyphicon-play-circle" style="font-size: 10px;"></span>&nbsp;&nbsp;@item.Name</a></h1></div>
                                    <div style="border-left:1px solid  #6b6b6b;border-top:1px solid  #6b6b6b;padding: 20px;">@(item.Synopsis == null ? "" : Html.Raw(item.Synopsis))</div>
                                </td> 
                            </tr>
                        }
                    }
                    else
                    {
                        <tr>
                            <td style="text-align: left;">
                                @if (ViewBag.ArticleList.Count == 1)
                                {
                                    <div style="border-left:1px solid  #6b6b6b;padding: 20px;"><h1>@(ViewBag.Title=ViewBag.ArticleList[0].Name == null ? "" : Html.Raw(ViewBag.ArticleList[0].Name) )</h1></div>
                                    <div style="border-left:1px solid  #6b6b6b;border-top:1px solid  #6b6b6b;padding: 20px;">@(ViewBag.ArticleList[0].Content == null ? "" : Html.Raw(ViewBag.ArticleList[0].Content))</div>
                                }
                            </td>
                        </tr>
                    }
                </tbody>
            </table>
        </div>
    </div>
</div>
